package code.ws_common_net.support
{
	import code.ws_common_interface.base.ICall;
	import code.ws_common_interface.support.call.ILoginCall;
	
	import flash.utils.Dictionary;

	public class CallPool
	{
		private static var _pool:Dictionary=new Dictionary();
		
		public static const LOGIN_CALL:int=1;
		
		/**添加业务*/
		public static function add(id:uint,action:ICall)
		{
			if(_pool[id]==null)
				_pool[id]=action;
		}
		public static function get login():ILoginCall
		{
			return _pool[LOGIN_CALL] as ILoginCall;
		}
	}
}